﻿using Company.Database.Entities;


namespace Company.Database
{
    public interface IUserRepository : IRepository<UserEntity>
    {
        /// <summary>
        /// 按照用户名查找用户
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        UserEntity? search(string username);
        /// <summary>
        /// 登录用户
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <param name="user"></param>
        /// <returns></returns>
        bool Login(string username,string password ,out UserEntity? user);
    }
}
